//
//  HYPayManager.h
//  XPlayer
//
//  Created by liguoqing on 2023/12/1.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

typedef void(^PayRespBlock)(BOOL paySuccess);

NS_ASSUME_NONNULL_BEGIN

@interface HYPayManager : NSObject

@property(nonatomic,copy)NSString * money;//金额 苹果支付使用
@property(nonatomic,copy)NSString * productId;//产品id

+ (instancetype)shareManager;

+ (void)releaseManager;

- (void)requestApplePayWithSelectIndex:(NSInteger)index respBlock:(PayRespBlock)respBlock;


@end

NS_ASSUME_NONNULL_END
